<?php

namespace App\Http\Requests\Logic\Schedule;

use Illuminate\Foundation\Http\FormRequest;

class QueryCollection extends FormRequest
{
    /**
     * Determine if the user is authorized to make this request.
     *
     * @return bool
     */
    public function authorize()
    {
        return true;
    }

    /**
     * 定义表单验证规则
     *
     * Date: 22/04/2018
     * @author George
     * @return array
     */
    public function rules()
    {
        return [
            'user_id' => 'nullable',
            'project_id' => 'nullable',
            'start' => 'nullable',
            'end' => 'nullable',
        ];
    }
}
